package com.qidian.by.goods.controller;

import com.qidian.by.goods.service.IItemCategoryService;
import com.qidian.by.util.pojo.EsResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 小可怎么都睡不够
 * @since 2024-05-08
 */
@RestController
@RequestMapping("/itemCategory")
public class ItemCategoryController {
    @Autowired
    private IItemCategoryService iItemCategoryService;

    @GetMapping("/list")
    public EsResult list(){
        return iItemCategoryService.list();
    }
}
